<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: SKT
  Date: 2023/6/7
  Time: 17:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="/add/*" method="post">
<c:forEach items="${list}" var="i">
    <h1>${i.time}</h1>
    <label>出勤时间:</label><input type="text" value="${i.time}">
    <label>出勤状况:</label>
    <c:if test="${i.type==1}">
        <input type="text" value="已到">
    </c:if>
    <c:if test="${i.type==2}">
        <input type="text" value="迟到">
    </c:if>
    <c:if test="${i.type==3}">
        <input type="text" value="旷课">
    </c:if>
    <input type="submit" value="提交">
</c:forEach>
</form>
</body>
</html>
